
 
import time
from machine import Pin
from setting import *
 

class PowerLed:
     # 41 green
     # 1 red
     # 2 blue
 
    def __init__(self, redPin, greenPin, bluePin):
        self.redLedPin = Pin(redPin, Pin.OUT)
        self.greenLedPin =Pin(greenPin, Pin.OUT)
        self.blueLedPin =Pin(bluePin, Pin.OUT)


    def turnOnRedLed(self):
        self.redLedPin.value(1)
        self.greenLedPin.value(0)
        self.blueLedPin.value(0)
    def turnOffLed(self):
        self.redLedPin.value(0)
        self.greenLedPin.value(0)
        self.greenBluePin.value(0)
    def turnOnGreeLed(self):
        self.redLedPin.value(0)
        self.greenLedPin.value(1)
        self.blueLedPin.value(0)
     
    def turnOnBlueLed(self):
        self.redLedPin.value(0)
        self.greenLedPin.value(0)
        self.blueLedPin.value(1)